﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;

namespace BLL
{
    public class Warehouse_BLL
    {
        public static Warehouse_DAL cls = new Warehouse_DAL();
        #region[Get-Data]
        public DataTable GetWarehouse()
        {
            return cls.GetWarehouse();
        }
        public DataTable GetWarehouseDetail_Edit(int id)
        {
            return cls.GetWarehouseDetail_Edit(id);
        }
        public DataTable GetWarehouseBranch(int id)
        {
            return cls.GetWarehouseBranch(id);
        }
        public DataTable GetWarehouseFillter(int id)
        {
            return Warehouse_DAL.GetWarehouseFillter(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertWarehouse(ET.Warehouse_ET obj)
        {
            return cls.InsertWarehouse(obj);
        }
        public static bool UpdateWarehouse(ET.Warehouse_ET obj)
        {
            return cls.UpdateWarehouse(obj);
        }
        public static bool DeleteWarehouse(int id)
        {
            return cls.DeleteWarehouse(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
